package com.juzhi.dvrapp.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by YangHu on 2017/9/28.
 */
@Entity
public class MessageModel {
    @Id(autoincrement = true)
    public Long id;
    //设备名称
    @NotNull
    private String deviceName;
    //设备ID
    @Unique
    private String ssid;
    //消息时间
    private String time;
    //消息类型
    private int msgType;
    //消息经纬度
    private double longitude;
    private double latitude;
    @Generated(hash = 887148890)
    public MessageModel(Long id, @NotNull String deviceName, String ssid,
            String time, int msgType, double longitude, double latitude) {
        this.id = id;
        this.deviceName = deviceName;
        this.ssid = ssid;
        this.time = time;
        this.msgType = msgType;
        this.longitude = longitude;
        this.latitude = latitude;
    }
    @Generated(hash = 1699352037)
    public MessageModel() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getDeviceName() {
        return this.deviceName;
    }
    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }
    public String getSsid() {
        return this.ssid;
    }
    public void setSsid(String ssid) {
        this.ssid = ssid;
    }
    public String getTime() {
        return this.time;
    }
    public void setTime(String time) {
        this.time = time;
    }
    public int getMsgType() {
        return this.msgType;
    }
    public void setMsgType(int msgType) {
        this.msgType = msgType;
    }
    public double getLongitude() {
        return this.longitude;
    }
    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }
    public double getLatitude() {
        return this.latitude;
    }
    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }


}
